Repository navigation
fix(macos): connect the runner process to the window server before XCTest events - #4155
Conversation
…Test events Xcode 27.2 aborts in CGS_REQUIRE_INIT on the first synthesized event because the UI-test runner never touches NSApplication. Touch NSApplication.shared in the RunnerTests class setUp on macOS. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Size Report
Startup median (7 runs, lower is better):
|
Apex SentinelVerdict: No findings. round 1 added 2 new fingerprints (<= 2). Reply under an inline comment with |
|
The code looks good at 6fc856b: the change in RunnerTests.swift is |
Summary
With Xcode 27.2 the macOS runner aborts in
CGS_REQUIRE_INITon the first synthesized event (click, tap, fill, scroll). The UI-test runner never touchesNSApplication, so the process is not connected to the window server when XCTest reachesSLSGetDisplaysWithRect.RunnerTestsnow touchesNSApplication.sharedin a macOS-only classsetUp, the fix the reporter ran locally.1 file. No source-text test: no existing guard asserts runner Swift content, so a text pin would be a new pattern. Fixes #4142
Validation
fill,scrollon Brave, no assert).pnpm build:xcuitest:macos.--platform macos:click,fill("Filled 10 chars", text visible in the document) andscroll downall succeeded. A stray system "PosterBoard quit unexpectedly" dialog was on the desktop, so the 27.1 run does not prove the 27.2 fix.pnpm check:affected --run --head 6fc856b486: passed,exactCommit=true.🤖 Generated with Claude Code